package com.ipcamera.demo.h5.view;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;


/**
 * author: veepai
 * date: 2019/8/14
 * description: 基类
 */
public class BaseAcActivity extends AppCompatActivity {



    private Context context;
    public String userid, token;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        context = this;

    }

    public void showMessage(String msg) {

    }

    public void showDialog(String str) {
        if (context != null) {

        }
    }

    public void showDialog() {
        if (context != null) {

        }
    }

    public void dismissDialog() {

    }

    private boolean isValidContext(Context c) {
        Activity a = (Activity) c;
        return !a.isFinishing();
    }

    public interface OnBooleanListener {
        void onClick(boolean bln);
    }
}
